package com.aaa.service.back.Impl;

import com.aaa.entity.Dept;
import com.aaa.mapper.back.DeptMapper;
import com.aaa.service.back.DeptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class DeptServiceImpl implements DeptService {

    @Resource
    private DeptMapper deptMapper;

    @Override
    public List<Map<String, Object>> findDept() {
        return deptMapper.findDept();
    }

    @Override
    public Map<String, Object> findByDeptId(Integer deptId) {
        return deptMapper.findByDeptId(deptId);
    }

    @Override
    public int addDept(Dept dept) {
        return deptMapper.addDept(dept);
    }

    @Override
    public int editDept(Dept dept) {
        return deptMapper.editDept(dept);
    }
}
